<template>
  <div>
    <div class="box">
      <div class="text">特大喜讯 <van-icon name="bullhorn-o" />:</div>
      <div class="swipe">
        <el-carousel
          height="40px"
          direction="vertical"
          :interval="2000"
          :autoplay="true"
        >
          <el-carousel-item v-for="item in items" :key="item">
            <h3 class="medium">{{ item }}</h3>
          </el-carousel-item>
        </el-carousel>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      items: [
        '瞧一瞧，看一看啦。绝对没有空的',
        '一朝入皇城，满院无生色',
        '你与神明画押，我与魔鬼下注',
        '清风拂眉梢，巧手掠丝床',
        '翼翅轻展九万里，异瞳收尽天下色'
      ]
    }
  }
}
</script>

<style lang="scss" scoped>
.box {
  display: flex;
  justify-content: space-between;
  // background-color: #39a9ed;
}
.el-carousel__item .medium{
  font-size: 12px;
  color: rgb(57, 18, 230);
}
.swipe {
  width: 60%;
}
.text {
  color: rgba(248, 7, 7, 0.5);
  font-size: 18px;
  line-height: 40px;
}
/deep/.el-carousel__indicator {
  display: none;
}
.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 40px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  // background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  // background-color: #d3dce6;
}
</style>
